package com.ruoyi.web.controller.manage;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.manage.service.IAppIllegalTemplatePicturesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wwy
 * @Date: 2021/1/27 11:21
 */
@Api("移动端获取违法图片模板")
@RestController
@RequestMapping("/api")
public class AppIllegalTemplatePicturesController {
    @Autowired
    private IAppIllegalTemplatePicturesService appIllegalTemplatePicturesService;
    /**
     * 根据违法类型id获取
     * @param type
     * @return
     */
    @ApiOperation("根据违法类型id获取")
    @GetMapping("/getTemplatePictures/{type}")
    public AjaxResult getTemplatePictures(@PathVariable("type") int type){
        return appIllegalTemplatePicturesService.getTemplatePictures(type);
    }

}
